package com.zy.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/5 15:34
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    /**
     * 404 not found
     */
    private Integer code;
    /**
     * 返回信息
     */
    private String massage;

    private T data;

    public CommonResult(Integer code,String massage){
        this(code,massage,null);
    }
}
